package com.shelly.memento;

import java.io.Serializable;

/**
 * @author: Shelly
 * @create: 2023-01-13 10:09:27
 * @describe: 子弹
 */
public class Bullet implements Serializable {
    private transient String name ;//这个属性不进行序列化，就不会被备忘录保存；读取时就为空

    public Bullet(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Bullet{" +
                "name='" + name + '\'' +
                '}';
    }
}
